﻿using BCCommon;
using BCDto.MySql.BusinessFlowStepInstance;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.BusinessFlowInstance.BusinessFlowStepInstance
{
    /// <summary>
    /// OA系统业务流步骤实例
    /// </summary>
	public interface IBusinessFlowStepInstanceService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowStepInstanceId">OA系统业务流步骤实例Id</param>
        bool Exists(long businessFlowStepInstanceId);
        /// <summary>
        /// 添加OA系统业务流步骤实例
        /// </summary>
        /// <param name="requestDtos">OA系统业务流步骤实例信息列表</param>
        IEnumerable<BusinessFlowStepInstanceDto> Add(List<BusinessFlowStepInstanceRequestDto> requestDtos);

        /// <summary>
        /// 获取OA系统业务流步骤实例
        /// </summary>
        /// <param name="businessFlowStepInstanceId">OA系统业务流步骤实例Id</param>
        BusinessFlowStepInstanceDto GetEntity(long businessFlowStepInstanceId);
        /// <summary>
        /// 获取OA系统业务流步骤实例列表
        /// </summary>
        /// <param name="businessFlowInstanceId">工作流实例Id</param>
        IEnumerable<BusinessFlowStepInstanceDto> GetList(long businessFlowInstanceId);
        /// <summary>
        /// 获取OA系统业务流步骤实例分页列表
        /// </summary>
        /// <param name="businessFlowInstanceId">业务流实例Id</param>
        /// <param name="businessFlowModelId">业务流模型Id</param>
        /// <param name="pageBusinessConfigId">页面业务配置Id</param>
        /// <param name="businessFlowStepInstanceName">OA系统业务流步骤实例名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统业务流步骤实例每页数据条数</param>
        PageableList<BusinessFlowStepInstanceDto> Query(long? businessFlowModelId, long? businessFlowInstanceId, long? pageBusinessConfigId, string businessFlowStepInstanceName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
